import request from '@/utils/request'

// 获取托运工单列表
export function getRefundInfoList(params) {
  return request({
    url: `/adm/v1/refundInfo/page/list`,
    method: 'get',
    params,
  })
}

// 审核
export function audit(data) {
  return request({
    url: `/adm/v1/refundInfo/audit`,
    method: 'post',
    data,
  })
}

//根据单据id，查询审核信息
export function getByRefundInfoId(id) {
  return request({
    url: `/adm/v1/refundAuthDetail/getByRefundInfoId/`+id,
    method: 'get',
  })
}

//根据单据id，查询订单金额
export function getOrderMoneyByNo(orderId,orderType) {
  return request({
    url: `/adm/v1/refundAuthDetail/getOrderMoneyByNo/`+orderId+'/'+orderType,
    method: 'get',
  })
}
